package com.xinsoft.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xinsoft.entity.dto.CusSafetyCheckParam;
import com.xinsoft.entity.po.CusInsure;
import com.xinsoft.entity.po.CusSafetyCheck;
import com.xinsoft.mapper.CusSafetyCheckMapper;
import com.xinsoft.service.CusSafetyCheckService;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;

/**
* @author lijie
* @description 针对表【cus_safety_check(安监管理)】的数据库操作Service实现
* @createDate 2023-06-26 12:57:44
*/
@Service
public class CusSafetyCheckServiceImpl extends ServiceImpl<CusSafetyCheckMapper, CusSafetyCheck>
    implements CusSafetyCheckService{
    @Resource
    CusSafetyCheckMapper safetyCheckMapper;

    @Override
    public Object findPageListByParam(CusSafetyCheckParam param) {
        //分页
        Page<CusInsure> page = new Page<CusInsure>(param.getCurrentPage(), param.getPageSize());
        IPage<CusInsure> resultPage = safetyCheckMapper.findListByParam(page, param);
        //返回值
        return resultPage;
    }
}




